/**
 * 
 */
package edu.rit.cs.core.pojos;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

/**
 * The stock information.
 * 
 * @author Abhishek Shrestha (axs1430)
 * @author Juan Saldana (jjs6109)
 * @author Victor Alvarez (vxa1557)
 */
@Entity
@Table(name = "symbols")
public class Symbol implements Serializable {
  private static final long serialVersionUID = 1L;

  private String id;
  private String fullname;
  private double price;

  /**
   * @return the id
   */
  @Id
  @Length(min = 1, max = 6)
  @NotNull
  @Column(nullable = false, unique = true, length = 6)
  public String getId() {
    return id;
  }

  /**
   * @param id the id to set
   */
  public void setId(String id) {
    this.id = id;
  }

  /**
   * @return the fullname
   */
  @NotNull
  @Length(min = 1, max = 255)
  @Column(nullable = false, length = 255)
  public String getFullname() {
    return fullname;
  }

  /**
   * @param fullname the fullname to set
   */
  public void setFullname(String fullname) {
    this.fullname = fullname;
  }

  /**
   * @return the price
   */
  @Column
  @NotNull
  public double getPrice() {
    return price;
  }

  /**
   * @param price the price to set
   */
  public void setPrice(double price) {
    this.price = price;
  }

  
}
